<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <ul class="top-nav-list dpflex container">
            <li class="top-nav-item flex1">
                <a class="top-nav-link active" href="./sports_run.html">跑步</a>
                <span class="line"></span>

            </li>
            <li class="top-nav-item flex1">
                <a class="top-nav-link" href="./sports_run_cycling.html">骑行</a>
            </li>
            <li class="top-nav-item flex1">
                <a class="top-nav-link " href="./sports_course.html">课程训练</a>
            </li>
        </ul>
    </div>
    <main>
        <!-- 计数部分 -->
        <div class="main dpflex fdco">
            <div class="data-info container">
                <h6 class="title">目前累计跑步距离</h6>
                <p>
                    <span class="num" id="num"></span>
                    <span class="unit">公里</span>
                </p>
            </div>
            <!-- 地图容器 -->
            <div class="map_box flex1 rel">
                <div class="map h100" id="map"></div>
                <div class="logo">GO</div>
                <div class="map_tab">
                    <ul class="dfbc container map_list" id="mapList">
                        <li class="active">户外跑</li>
                        <li>燃脂跑</li>
                        <li>跑步机</li>
                    </ul>
                </div>
                <!-- 设置目标 -->
                <div class="map_target">
                    <div class="container dfbc">
                        <span class="iconfont icon-shezhi"></span>
                        <div class="target">设置目标<span class="iconfont icon-youjiantou"></span></div>
                        <span class="iconfont icon-yinle"></span>
                    </div>
                </div>

            </div>
        </div>
        <!-- 路线 -->
        <div class="routine">
            <ul class="container">
                <li class="dfbc active">
                    <div class="routine_text">
                        <h4>跑步路线</h4>
                        <p>使用跑步路线,邂逅附近的同行者</p>
                    </div>
                    <span class="iconfont icon-youjiantou"></span>
                </li>
                <li class="dfbc">
                    <div class="routine_text">
                        <h4>燃脂跑</h4>
                        <p>跑出自己的风采</p>
                    </div>
                    <span class="iconfont icon-youjiantou"></span>
                </li>
                <li class="dfbc">
                    <div class="routine_text">
                        <h4>跑步机</h4>
                        <p>燃烧你的脂肪</p>
                    </div>
                    <span class="iconfont icon-youjiantou"></span>
                </li>
            </ul>

        </div>
    </main>
    <!-- <script src="//api.map.baidu.com/api?v=2.0&ak=oo2M7hOEsVGQM5xh2bGcPW15nQdjKz1f"></script> -->
    <script type="text/javascript">
        window._AMapSecurityConfig = {
            securityJsCode: "675fe2692ff4f74fe5cece811bbce278",
        }
    </script>
    <script src="https://webapi.amap.com/loader.js"></script>
    <script type="text/javascript">
        AMapLoader.load({
            key: "60a0df0b951883af3b670c3823c6810b",       // 申请好的Web端开发者Key，首次调用 load 时必填
            version: "2.0",                 // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
        }).then((AMap) => {
            const map = new AMap.Map('map', {
                zoom: 11,  //初始化地图层级
                center: [104.066301, 30.572961]  //初始化地图中心点
            });
        }).catch((e) => {
            console.error(e);  //加载错误提示
        });

    </script>
</body>

</html>